<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>被识别的人员</title>
<style>   
 	.table-a table{border-right:1px solid #FFC1C1;border-bottom:1px solid #FFC1C1;height:850px;width:1300px} 
	.table-a table td{border-left:1px solid #FFC1C1;border-top:1px solid #FFC1C1} 
	.table-a table td {text-align: center;vertical-align:middle,height:50px} 
	 
</style>
</head>
<body>
	
	<body class="table-a">
	<table  align="center" style="margin-top: 50px;height:100%;width:100%" > 
		<tbody> 
			<tr> 
				<td rowspan="2" style="width:200px" > 
						<img  src="/img/face/scan.gif" width="211" height="132" />
				</td>
				<td > <h2>相似度</h2> </td>
				<td > 
					<div>
						<span>姓名：</span> <br>
						<span>年龄：</span> <br>
						<img src="/img/face/scan.gif" width="211" height="132" />
					</div> 
				</td>
			</tr>
			<tr >
				<td >  <h2>相似度</h2> </td>
				<td>  <h2>广东卫视</h2> </td>
			</tr>
		</tbody>
		
	</table>
	<div><button onclick="hasData();">是否返回数据</button></div>

	  
</body>
	
</body>
<script type="text/javascript" src="/js/plugins/layui/layui.js"></script>
<script type="text/javascript" src="/js/plugins/layui/mylayer.js"></script>
<script type="text/javascript" src="/js/jquery.min.js?v=2.1.4"></script>
<script type="text/javascript">
	
	function hasData(){
		var hasData = getFace();
		console.log(hasData);
	}
	function getFace(){
		var facedata = null;
		$.ajax({
			  url: "/hessian/showfacedata",
			  async:false,//取消异步请求
			  data: {faceIds:'1135360052417400832,1135360052471926784'},
			  dataType: 'json', 
			  success: function (data,textStatus,request) {
				  console.log(data);
				  if (data.code == 0) {
					  facedata = data.data;
				  }else{ 
					  layer.msg(data.msg);
				  }
			  },
			  error:function (data,textStatus,request){
				  
			  	  layer.msg("网络异常");  
				   
			  } 
		});
		return facedata;
	}
	
</script>
</html>